package com.cyl.manager.pms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cyl.manager.pms.domain.entity.Sku;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;

@Mapper
public interface SkuMapper extends BaseMapper<Sku> {

    int updateStockById(@Param("skuId")Long skuId, @Param("optDate") LocalDateTime optDate, @Param("quantity")Integer quantity);

}